﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Inspinia_MVC5.Models
{
    //键值对类
    public class KeyValueModel
    {
        public string Key;
        public string Value;
    }
    //地图页面单井弹出框数据模型类
    public class WellDataModel
    {
        public string WellId { get; set; }
        public string Datetime { get; set; }
        public string Stroke { get; set; }
        public string Jig { get; set; }
        public string Up_Jig { get; set; }
        public string Down_Jig { get; set; }
        public float[] Data_Disp { get; set; }
        public float[] Data_Load { get; set; }
    }
    //示功图数据模型类
    public class IndicatorModel
    {
        public string Well_ID { get; set; }
        public string Well_Name { get; set; }
        public string Datetime { get; set; }
        public float [] Indd_Data_Disp { get; set; }
        public float [] Indd_Data_Load { get; set; }
        public float Stroke { get; set; }
        public float Stroketimes { get; set; }
        public float maxload { get; set; }
        public float minload { get; set; }
        public float Manif_Press { get; set; }
        public float Manif_Temp { get; set; }
        public float O_Press { get; set; }
        public float O_Temp { get; set; }
        public float Cas_Press { get; set; }
        public float Actpow { get; set; }
        public float Bal_Rate { get; set; }//平衡率
        public float Sys_Eff { get; set; }//系统效率
        public float Pow_Factor { get; set; }//功率因数
        public float UpCurrent { get; set; }//系统效率
        public float DownCurrent { get; set; }//功率因数
        public int ID { get; set; }
    }
    //功图数据模型类
    public class SimpleIndicatorModel
    {
        public string Well_ID { get; set; }
        public string Well_Name { get; set; }
        public string Datetime { get; set; }
        public float[] Indd_Data_Disp { get; set; }
        public float[] Indd_Data_Load { get; set; }
        public int ID { get; set; }
    }
    //报警记录数据模型类
    public class WarnLogModel
    {
        public int RecordeID { get; set; }
        public string WELL_ID { get; set; }
        public string OperatorID { get; set; }
        public string ActionTime { get; set; }
        public string IDCode { get; set; }
        public string Parameter { get; set; }
        public string Status_Before { get; set; }
        public string Status_Now { get; set; }
        public string ErrorEndTime { get; set; }
        public string isCheck { get; set; }
    }
    //所有数据模型类
    public class DataModel
    {
        public string Datetime { get; set; }
        public string WellId { get; set; }
        public string Identifier { get; set; }
        public string Parameter { get; set; }
        public string Value { get; set; }
        public string Unit { get; set; }
        public string Range { get; set; }
        public string Style { get; set; }
    }
    //传感器参数类
    public class SensorValueModel
    {
        public string Name { get; set; }
        public string Value { get; set; }
        public string IDCode { get; set; }
        public string Address { get; set; }
        public double Scaler { get; set; }
        public string Unit { get; set; }
        public string Range { get; set; }
    }
    //传感器模型类
    public class SensorModel
    {
        public string WellId { get; set; }
        public string SensorName { get; set; }
        public string SensorChina { get; set; }
        public string Power { get; set; }
        public List<SensorValueModel> SensorValue { get; set; }
    }
    //报表数据模型类
    public class ReportDataModel
    {
        public string BlockId { get; set; }
        public string WellId { get; set; }
        public string XingHao { get; set; }
        public string CengWei { get; set; }
        public string JingDuan { get; set; }
        public string Time { get; set; }
        public string ChongCheng { get; set; }
        public string ChongCi { get; set; }
        public string TaoYa { get; set; }
        public string HuiYa { get; set; }
        public string WenDu { get; set; }
        public string YouLiang { get; set; }
        public string ShuiLiang { get; set; }
        public string QiLiang { get; set; }
    }
    public class WellModel
    {
        public int ID { get; set; }
        public string IP_Port { get; set; }
        public string Name1 { get; set; }
        public string Name2 { get; set; }
        public string Width { get; set; }
        public string Height { get; set; }
        public string Status { get; set; }
        public int BLOCK_ID { get; set; }
        public string Station { get; set; }
        public string Deep { get; set; }
        public string Diameter { get; set; }
        public string Angle { get; set; }
        public string TabWidth { get; set; }
        public string TabHeight { get; set; }
    }
}